﻿export default url => {
    const crud = window.$crud(url)
    crud.updateTask =(id)=> window.$axios({
        url: `${url}/datatask/${id}`,
        method: 'put'
    })

    crud.copy =(id)=> window.$axios({
        url: `${url}/copy/${id}`,
        method: 'post'
    })

    crud.resetAdmin =(id)=> window.$axios({
        url: `${url}/resetadmin/${id}`,
        method: 'put'
    })
    return {
        ...crud
    }
}